package com.business_clean.ui.adapter;

import com.baidu.location.Poi;
import com.business_clean.R;
import com.business_clean.data.mode.address.CustomPoiEntity;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;

public class AddressChooseAdapter extends BaseQuickAdapter<CustomPoiEntity, BaseViewHolder> {
    public AddressChooseAdapter() {
        super(R.layout.item_choose_address);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder holder, CustomPoiEntity poi) {
        holder.setText(R.id.tv_item_choose_address_title, poi.getName())
                .setText(R.id.tv_item_choose_address_sub, poi.getAddr());
    }
}
